<!doctype html>
<html xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.thymeleaf.org/extras/spring-security" xmlns:auth=""
      class="x-admin-sm">
<auth:data uri="/system/menu.json,/welcome"/>
<head>
    <th:block th:include="common/head::xadmin('首页')"/>
</head>
<body>
<th:block th:replace="common/top::top"/>
<th:block th:replace="common/left::nav"/>
<!-- 右侧主体开始 -->
<div class="page-content">
    <div class="layui-tab tab" lay-filter="xbs_tab" lay-allowclose="false">
        <ul class="layui-tab-title">
            <li class="home layui-this">
                <i class="layui-icon">&#xe68e;</i>我的桌面
            </li>
        </ul>
        <div class="layui-unselect layui-form-select layui-form-selected" id="tab_right">
            <dl>
                <dd data-type="this">关闭当前</dd>
                <dd data-type="other">关闭其它</dd>
                <dd data-type="all">关闭全部</dd>
            </dl>
        </div>
        <div class="layui-tab-content">
            <div class="layui-tab-item layui-show">
                <iframe src='./welcome' frameborder="0" scrolling="yes" class="x-iframe"></iframe>
            </div>
        </div>
        <div id="tab_show"></div>
    </div>
</div>
<div class="page-content-bg"></div>
<style id="theme_style"></style>
<!-- 右侧主体结束 -->
</body>
<script type="application/javascript">

    layui.use(['jquery'], function () {
        var $ = layui.jquery;

        function ttt() {
            $("iframe").each(function () {
                var d = $(this);
                if (typeof d.attr("ad") === 'undefined') {
                    var dd = this.contentDocument;
                    var ss = dd.createElement('script');
                    ss.src = '/static/js/clearAd.js';
                    dd.head.append(ss);
                    d.on('load', function () {
                        var dd = this.contentDocument;
                        var ss = dd.createElement('script');
                        ss.src = '/static/js/clearAd.js';
                        dd.head.append(ss);
                    })
                    d.attr("ad", 1);
                }
            })
            setTimeout(ttt, 500)
        }

        setTimeout(ttt, 500)
    })
</script>
</html>